lib.sh: Set ALSA settings from a state file#1294
Merged
lgirdwood merged 7 commits intothesofproject:mainfrom Aug 19, 2025
Merged
lib.sh: Set ALSA settings from a state file#1294lgirdwood merged 7 commits intothesofproject:mainfrom
lgirdwood merged 7 commits intothesofproject:mainfrom
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is to continue with #1284 and PoC #1270
Set ALSA settings from a state file and migrate PTL configurations to the new mechanism:
set_alsa_settings()function now usesalsactl restorecommand, to change ALSA controls from a custom state file first, if it is present, and next - execute a bash script with amixer commands, if it is also present.The state file is expected as
./alsa_settings/${PLATFORM}.statewhereas the bash script remains as./alsa_settings/${PLATFORM}.shThe custom state should be compatible with the platform's default state, see
set_alsa()function.Replace PTL platform ALSA settings done as bash script commands by their equivalent ALSA state files for:
The parameters in the state files are explicitly set even if the default values at the appropriate DUT are currently the same.
Log difference between the current ALSA state and the restored ALSA state.
Add
README.mddocumentation for the SOF test ALSA settings.